package com.ruoyi.proposals.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.proposals.domain.ProComment;
import com.ruoyi.proposals.domain.ProFavorite;
import com.ruoyi.proposals.domain.ProProposals;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProProposalsMapper extends BaseMapper<ProProposals> {

    List<ProProposals> selectByUserId(@Param("userId") String userId);

    void deleteByIds(List ids);

    List<ProProposals> queryList(ProProposals proposals);

    List<ProProposals> getFavoritesByUserId(Long userId);

    boolean favoriteProposal(ProFavorite proFavorite);

    boolean commentProposal(ProComment proComment);

    ProProposals selectByProposalId(Long proposalId);
}




